package com.hongyue.dey03;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("D:\\jiuye\\dey11\\src\\com\\hongyue\\dey03\\目标.zip");
        FileInputStream fis = new FileInputStream("C:\\Users\\86182\\Desktop\\源.zip");
        byte[] bytes = new byte[1024];
        int by;
        while ((by = fis.read(bytes)) != -1) {
            fos.write(bytes, 0, by);
        }
        fis.close();
        fos.close();
    }
}
